@import url("../static/css/bootstrap.min.css");

html {
	font-size: 14px;
}
body{
	color:#666;
	background: #f5f7fa;
}

#pageContainer {
    margin: 0 auto;
}

.mod-imagebase64 {
	margin:0 auto;
    padding-bottom: 0;
}

.tips{
	color:#aaa;
	margin: 10px 0;
    font-size: 12px;
}

table {
    width:100%;
    table-layout: fixed;
}
td {
    width:50%;
    vertical-align: top;
}
td .x-panel {
    height:460px;
    background: #fff url() center 120px no-repeat;
    border:4px dashed #ddd;
    position: relative;
    text-align: center;
    margin-right: 10px;
}
td .x-panel .x-tips {
    color:#aaa;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: calc(50% - 112px);
}
.tips i{
    color: #454545;
}
#upload {
    font-size: 20px;
    background: #00b7ee;
    border-radius: 3px;
    line-height: 44px;
    height: 45px;
    padding: 0 30px;
    color: #fff;
    display: inline-block;
    margin: 5px auto 15px;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    text-decoration: none;
}
#upload:hover {
    background: #00a2d4;
}
#preview {max-width: 260px;max-height: 260px;margin-top:50px;}
form {display: none}
#base64Result,#base64Input {
    height:460px;
    padding:4px;
    margin:0;
    resize:none;outline:none;
    background: #fcfcfc;
    border:1px solid #ddd;
}
.-e-x-footer {
	text-align:center;
	font-size:12px;
	margin-top:30px;
	color:#00c;
	padding:5px;
	display:none;
}
.x-result-info .x-title{
    color: #aaa;
    font-size: 12px;
}
#sizeOri,#sizeBase {
    color: #600;
    font-style: italic;
}
.mod-base64image .x-panel{
    margin-left: 40px;
}
#base64Input{
    background:#fff;
}
.x-xdemo {
    margin-left: 30px;
    font-size: 12px;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
    -webkit-user-select: none;
    user-select: none;
}
.x-xdemo:hover {
    color: #cc8841;
}
/* 保持原有的顶部导航样式 */
.x-switch {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
    border: none;
    margin-left: 70px;
    white-space: nowrap;
    margin-right: auto;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #eff6ff;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

.x-switch::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    background: url('../static/img/switch-mode.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.x-switch:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.x-switch:hover::before {
    transform: rotate(180deg);
    opacity: 1;
}
.x-error {
   margin: 0px 0px 10px 21px;
   padding-bottom: 10px;
   color:#f00;
}

/* 面板和标题栏样式 */
.panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.panel-heading {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.title-text-wrapper {
    display: flex;
    align-items: center;
}

.panel-title .x-a-high {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.panel-title .x-a-high:hover {
    color: #666;
    text-decoration: none;
}

.panel-title .x-a-high img {
    height: 16px;
    width: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.title-text-wrapper-text {
    margin-left: 5px;
    font-size: 14px;
    color: #333;
}

.x-switch {
    margin-left: 20px;
    font-size: 12px;
    color: #f00;
    cursor: pointer;
    padding: 3px 8px;
    border: 1px solid #f00;
    border-radius: 3px;
    text-decoration: none;
    user-select: none;
    transition: all 0.2s ease;
}

.x-switch:hover {
    background-color: #fff0f0;
    text-decoration: none;
}


/* 主体布局 */
.image-base64-layout,
.base64-image-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.upload-section,
.result-section,
.input-section,
.preview-section {
    flex: 1;
}

.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 上传区域样式 */
.x-panel {
    height: 460px;
    background: #fff url() center 120px no-repeat;
    border:4px dashed #ddd;
    position: relative;
    text-align: center;
    border-radius: 4px;
}

.upload-instructions {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.drag-drop-text {
    display: block;
    margin-top: 10px;
    color: #999;
}

#upload {
    font-size: 16px;
    background: #00b7ee;
    border-radius: 4px;
    line-height: 40px;
    height: 40px;
    padding: 0 25px;
    color: #fff;
    display: inline-block;
    margin: 5px auto;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

#upload:hover {
    background: #00a2d4;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

#preview {
    max-width: 260px;
    max-height: 260px;
    margin-top: 50px;
}

/* 结果区域样式 */
.mod-textarea {
    height: 460px;
    padding: 10px;
    margin: 0;
    resize: none;
    outline: none;
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.x-result-info {
    margin-top: 10px;
}

.x-result-info .x-item {
    margin: 5px 0;
}

.x-result-info .x-title {
    color: #666;
    font-size: 13px;
}

#sizeOri, #sizeBase {
    color: #600;
    font-style: italic;
}

/* 提示文本样式 */
.tips {
    color: #999;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.6;
}

.tips i {
    color: #454545;
    font-style: normal;
    font-weight: 500;
}

/* 错误提示样式 */
.x-error {
    margin: 10px 20px;
    padding: 10px;
    color: #f00;
    background: #fff0f0;
    border-radius: 4px;
    font-size: 13px;
}

/* 隐藏表单 */
form {
    display: none;
}

/* Base64转图片模式样式 */
#base64Image {
    max-width: 100%;
    max-height: 460px;
    margin: 0 auto;
    display: block;
}
/* Style for the "Explore More Tools" button */
.panel-title>a.x-other-tools {
    top: 0;
}
.x-donate-link {
    top: 14px;
}
